import { Module } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";
import { SysDept } from "@/database/entity/SysDept";
import { SysDeptType } from "@/database/entity/SysDeptType";
import { SysUserDept } from "@/database/entity/SysUserDept";
import { DeptController } from "./dept/dept.controller";
import { DeptService } from "./dept/dept.service";
import { DeptTypeController } from "./dept-type/dept-type.controller";
import { DeptTypeService } from "./dept-type/dept-type.service";

@Module({
    imports: [TypeOrmModule.forFeature([SysDept, SysDeptType, SysUserDept])],
    controllers: [DeptController, DeptTypeController],
    providers: [DeptService, DeptTypeService],
})
export class DeptModule {}
